package com.zero.java.base.readFile;

import java.io.RandomAccessFile;

public class FileHandler {
	
	private final static String file_name = "cfg/test.txt";
	
	public static void main(String[] args) throws Exception {
		
		RandomAccessFile inOut = new RandomAccessFile(file_name, "rw");
		inOut.seek(10);
		long filePointer = inOut.getFilePointer();
		System.out.println(filePointer);
		String readLine = inOut.readLine();
		System.out.println(readLine);
		
	}

}
